package cn.edu.sjtu.se.peakfactory.service.bean;

import java.util.Date;

import cn.edu.sjtu.se.lchang.socialnetwork.dao.bean.User;
import cn.edu.sjtu.se.peakfactory.dao.bean.UserCoupon;

public class UserCouponVB {
	private Long id;
	private User user;
	private CouponVB couponVB;
	private Date getTime;
	private Date useTime;

	public UserCouponVB(UserCoupon userCoupon) {
		id = userCoupon.getId();
		user = userCoupon.getUser();
		couponVB = new CouponVB(userCoupon.getCoupon());
		getTime = userCoupon.getGetTime();
		useTime = userCoupon.getUseTime();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public CouponVB getCouponVB() {
		return couponVB;
	}

	public void setCouponVB(CouponVB couponVB) {
		this.couponVB = couponVB;
	}

	public Date getGetTime() {
		return getTime;
	}

	public void setGetTime(Date getTime) {
		this.getTime = getTime;
	}

	public Date getUseTime() {
		return useTime;
	}

	public void setUseTime(Date useTime) {
		this.useTime = useTime;
	}

}
